import { Tag } from 'antd';

// 当前行数据
interface RowData {
  lineCode: string;
  lineColor: string;
}

interface Props {
  text: string;
  record: object;
}

function LineColor(props: Props) {
  const { text, record } = props;
  const { lineColor } = record as RowData;

  return (
    <>
      <Tag color={lineColor}>{text}</Tag>
    </>
  );
}

export default LineColor;
